/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Default_Frame.java
 *
 * Created on Oct 2, 2014, 6:06:34 PM
 */
package com.JD.DiselLog;

import javax.swing.JPanel;

/**
 *
 * @author admin
 */
public class DiselRecordForm extends javax.swing.JFrame {

    /** Creates new form Default_Frame */
    public DiselRecordForm() {
        initComponents();

        DefautFinal_Panel.removeAll();
        DefautFinal_Panel.add(defautPane_Fetchable);
        DefautFinal_Panel.repaint();

        // DefautFinal_Panel  defautPane_Fetchable
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        defaultPanelFromDiselRecordForm_Class = new javax.swing.JPanel();
        ToolPanel = new javax.swing.JPanel();
        addDisel_Button = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jSeparator1 = new javax.swing.JSeparator();
        BackButton = new javax.swing.JButton();
        addDiselToMachine_Button = new javax.swing.JButton();
        DefautFinal_Panel = new javax.swing.JPanel();
        defautPane_Fetchable = new javax.swing.JPanel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        defaultPanelFromDiselRecordForm_Class.setBackground(new java.awt.Color(255, 102, 102));

        ToolPanel.setBackground(new java.awt.Color(102, 102, 255));
        ToolPanel.setBorder(javax.swing.BorderFactory.createEtchedBorder(java.awt.Color.lightGray, java.awt.Color.lightGray));

        addDisel_Button.setBackground(new java.awt.Color(204, 204, 204));
        addDisel_Button.setFont(new java.awt.Font("Verdana", 0, 12));
        addDisel_Button.setText("Add Disel");
        addDisel_Button.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                addDisel_ButtonActionPerformed(evt);
            }
        });

        jLabel1.setFont(new java.awt.Font("Verdana", 0, 36));
        jLabel1.setForeground(java.awt.Color.white);
        jLabel1.setText("DISEL");

        jLabel2.setFont(new java.awt.Font("Verdana", 0, 36));
        jLabel2.setForeground(java.awt.Color.white);
        jLabel2.setText("RECORD");

        jLabel8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/JD/images/statonary2.gif"))); // NOI18N

        BackButton.setBackground(new java.awt.Color(204, 204, 204));
        BackButton.setFont(new java.awt.Font("Verdana", 0, 12));
        BackButton.setText("Back To Home");
        BackButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BackButtonActionPerformed(evt);
            }
        });

        addDiselToMachine_Button.setBackground(new java.awt.Color(204, 204, 204));
        addDiselToMachine_Button.setFont(new java.awt.Font("Verdana", 0, 12));
        addDiselToMachine_Button.setText("Add Disel To Machine");
        addDiselToMachine_Button.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                addDiselToMachine_ButtonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout ToolPanelLayout = new javax.swing.GroupLayout(ToolPanel);
        ToolPanel.setLayout(ToolPanelLayout);
        ToolPanelLayout.setHorizontalGroup(
            ToolPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(ToolPanelLayout.createSequentialGroup()
                .addGroup(ToolPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(ToolPanelLayout.createSequentialGroup()
                        .addGap(47, 47, 47)
                        .addComponent(jLabel8))
                    .addGroup(ToolPanelLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 161, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(ToolPanelLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel2))
                    .addGroup(ToolPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(BackButton, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(addDisel_Button, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 179, Short.MAX_VALUE)
                        .addComponent(addDiselToMachine_Button, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addContainerGap())
        );
        ToolPanelLayout.setVerticalGroup(
            ToolPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(ToolPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(29, 29, 29)
                .addComponent(addDisel_Button, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(29, 29, 29)
                .addComponent(addDiselToMachine_Button, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(31, 31, 31)
                .addComponent(BackButton, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(1069, 1069, 1069)
                .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout DefautFinal_PanelLayout = new javax.swing.GroupLayout(DefautFinal_Panel);
        DefautFinal_Panel.setLayout(DefautFinal_PanelLayout);
        DefautFinal_PanelLayout.setHorizontalGroup(
            DefautFinal_PanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        DefautFinal_PanelLayout.setVerticalGroup(
            DefautFinal_PanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 809, Short.MAX_VALUE)
        );

        defautPane_Fetchable.setBackground(new java.awt.Color(255, 102, 51));

        jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/JD/images/statonary2.gif"))); // NOI18N

        jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/JD/images/Fuel_Tanker.png"))); // NOI18N
        jLabel4.setToolTipText("Add New Driver Details");
        jLabel4.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLabel4MouseClicked(evt);
            }
        });

        jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/JD/images/oil 256.png"))); // NOI18N
        jLabel5.setToolTipText("Add New Party Details");
        jLabel5.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLabel5MouseClicked(evt);
            }
        });

        javax.swing.GroupLayout defautPane_FetchableLayout = new javax.swing.GroupLayout(defautPane_Fetchable);
        defautPane_Fetchable.setLayout(defautPane_FetchableLayout);
        defautPane_FetchableLayout.setHorizontalGroup(
            defautPane_FetchableLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(defautPane_FetchableLayout.createSequentialGroup()
                .addGap(446, 446, 446)
                .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 188, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(369, 369, 369))
            .addGroup(defautPane_FetchableLayout.createSequentialGroup()
                .addGap(91, 91, 91)
                .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 272, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 201, Short.MAX_VALUE)
                .addComponent(jLabel5)
                .addGap(183, 183, 183))
        );
        defautPane_FetchableLayout.setVerticalGroup(
            defautPane_FetchableLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(defautPane_FetchableLayout.createSequentialGroup()
                .addGroup(defautPane_FetchableLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, defautPane_FetchableLayout.createSequentialGroup()
                        .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(157, 157, 157)
                        .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 266, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, defautPane_FetchableLayout.createSequentialGroup()
                        .addGap(215, 215, 215)
                        .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 244, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(330, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout defaultPanelFromDiselRecordForm_ClassLayout = new javax.swing.GroupLayout(defaultPanelFromDiselRecordForm_Class);
        defaultPanelFromDiselRecordForm_Class.setLayout(defaultPanelFromDiselRecordForm_ClassLayout);
        defaultPanelFromDiselRecordForm_ClassLayout.setHorizontalGroup(
            defaultPanelFromDiselRecordForm_ClassLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, defaultPanelFromDiselRecordForm_ClassLayout.createSequentialGroup()
                .addComponent(DefautFinal_Panel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(defautPane_Fetchable, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(ToolPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 231, javax.swing.GroupLayout.PREFERRED_SIZE))
        );
        defaultPanelFromDiselRecordForm_ClassLayout.setVerticalGroup(
            defaultPanelFromDiselRecordForm_ClassLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(ToolPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 809, Short.MAX_VALUE)
            .addComponent(DefautFinal_Panel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(defaultPanelFromDiselRecordForm_ClassLayout.createSequentialGroup()
                .addComponent(defautPane_Fetchable, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        getContentPane().add(defaultPanelFromDiselRecordForm_Class, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 1240, 660));

        pack();
        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        java.awt.Dimension dialogSize = getSize();
        setLocation((screenSize.width-dialogSize.width)/2,(screenSize.height-dialogSize.height)/2);
    }// </editor-fold>//GEN-END:initComponents
  

    private void addDisel_ButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addDisel_ButtonActionPerformed
        // TODO add your handling code here:


        DefautFinal_Panel.removeAll();
        DefautFinal_Panel.add(new AddDisel_Home().getAddDisel_Panel());
        DefautFinal_Panel.repaint();


    }//GEN-LAST:event_addDisel_ButtonActionPerformed

    private void BackButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BackButtonActionPerformed
        // TODO add your handling code here:
        DefautFinal_Panel.removeAll();
        DefautFinal_Panel.add(defautPane_Fetchable);
        DefautFinal_Panel.repaint();
    }//GEN-LAST:event_BackButtonActionPerformed


    

    private void jLabel4MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel4MouseClicked
        // TODO add your handling code here:
       DefautFinal_Panel.removeAll();
        DefautFinal_Panel.add(new AddDisel_Home().getAddDisel_Panel());
        DefautFinal_Panel.repaint();

    }//GEN-LAST:event_jLabel4MouseClicked


  
    

    private void addDiselToMachine_ButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addDiselToMachine_ButtonActionPerformed
        // TODO add your handling code here:

        DefautFinal_Panel.removeAll();
        DefautFinal_Panel.add(new AddDiselToMachine_Copy().getAddDiselToMachine_Panel());
        DefautFinal_Panel.repaint();

    }//GEN-LAST:event_addDiselToMachine_ButtonActionPerformed

    private void jLabel5MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel5MouseClicked
        // TODO add your handling code here:
         DefautFinal_Panel.removeAll();
        DefautFinal_Panel.add(new AddDiselToMachine_Copy().getAddDiselToMachine_Panel());
        DefautFinal_Panel.repaint();

    }//GEN-LAST:event_jLabel5MouseClicked

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new DiselRecordForm().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton BackButton;
    private javax.swing.JPanel DefautFinal_Panel;
    private javax.swing.JPanel ToolPanel;
    private javax.swing.JButton addDiselToMachine_Button;
    private javax.swing.JButton addDisel_Button;
    public javax.swing.JPanel defaultPanelFromDiselRecordForm_Class;
    private javax.swing.JPanel defautPane_Fetchable;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JSeparator jSeparator1;
    // End of variables declaration//GEN-END:variables

    public JPanel getDefaultPanelFromDiselRecordForm_Class() {
        return defaultPanelFromDiselRecordForm_Class;
    }
}
